<template>
	<view class="main">
		<view class="head">
			<view class="search">
				<input class="uni-input" confirm-type="search" placeholder="请输入活动名称" />
				<image class="btn" src="https://honor-hall.oss-cn-chengdu.aliyuncs.com/search.png" mode="widthFix"></image>
			</view>
		</view>
		<view class="list">
			<view class="tab">
				<view class="label">
					<view class="title">未开始</view>
					<view class="line"></view>
				</view>
				<view class="label">
					<view class="title">进行中</view>
					<view class="line"></view>
				</view>
				<view class="label">
					<view class="title">已结束</view>
					<view class="line"></view>
				</view>
				<view class="label">
					<view class="title">已报名</view>
					<view class="line"></view>
				</view>
			</view>
			<view class="item" v-for="item in 5" :key="item">
				<view class="cover">
					<image src="../../static/image/1.jpg" mode="aspectFill"></image>
				</view>
				<view class="title">
					2024年科技成果交流春季系列活动之贵州科学城业界共治理事会“大数据行业委员会”成立大会暨行业科技创新交流会视觉方案
				</view>
				<view class="time">
					活动时间:2024年7月
				</view>
				<view class="num">
					活动人数:约120人
				</view>
				<view class="addr">
					活动地址:贵阳国家高新区
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>

</script>

<style lang="less" scoped>
.main{
	.head{
		padding: 30rpx 30rpx;
		.search{
			width: 690rpx;
			background-color: #ffffff;
			border-radius: 35rpx;
			position: relative;
			box-shadow: 0 0 30rpx rgba(0,0,0,0.05);
			.uni-input{
				height: 70rpx;
				border-radius: 50rpx;
				padding-left: 30rpx;
				border-radius: 35rpx;
			}
			.btn{
				width: 40rpx;
				height: 40rpx;
				position: absolute;
				right: 20rpx;
				top: 15rpx;
			}
		}
		
	}
	.list{
		background-color: #ffffff;
		width: 100vh;
		padding: 0 25rpx;
		.tab{
			width: 700rpx;
			display: flex;
			// justify-content: ;
			.label{
				width: 175rpx;
				height: 100rpx;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				.title{
					font-weight: bold;
					margin-bottom: 10rpx;
				}
				.line{
					width: 70rpx;
					border: 5rpx solid #00B689;
					// border-bottom: 5rpx solid #00B689;
					border-radius: 5rpx;
				}
			}
		}
		.item{
			display: flex;
			flex-direction: column;
			width: 700rpx;
			border-bottom:1rpx solid #DCDCDC;
			margin-top: 30rpx;
			.cover{
				width: 700rpx;
				height: 240rpx;
				border-radius: 15rpx;
				margin-bottom: 10rpx;
				image{
					width: 100%;
					height: 100%;
					border-radius: 15rpx;
				}
			}
			.title{
				width: 700rpx;
				margin-bottom: 10rpx;
				font-weight: bold;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-line-clamp: 3; /* 控制显示的行数 */
				-webkit-box-orient: vertical;
			}
			.time{
				width: 700rpx;
				color: #6B6B6B;
				margin-bottom: 10rpx;
				
			}
			.num{
				width: 700rpx;
				color: #6B6B6B;
				margin-bottom: 10rpx;
			}
			.addr{
				width: 700rpx;
				color: #6B6B6B;
				margin-bottom: 20rpx;
			}
		}
	}
}
</style>
